use an existing helper file instead of support/echo.php
diff --git a/XMLHttpRequest/send-data-arraybuffer.htm b/XMLHttpRequest/send-data-arraybuffer.htm index 09f75e1..baa0e44 100644 --- a/XMLHttpRequest/send-data-arraybuffer.htm +++ b/XMLHttpRequest/send-data-arraybuffer.htm
@@ -1,9 +1,9 @@ <!DOCTYPE html> <html> <head> - <link rel="help" href="http://dvcs.w3.org/hg/xhr/raw-file/tip/Overview.html#the-send()-method" /> + <link rel="help" href="http://dvcs.w3.org/hg/xhr/raw-file/tip/Overview.html#the-send()-method" data-tested-assertations="following::ol[1]/li[4]"/> <script src="/resources/testharness.js"></script> - <title>XMLHttpRequest L2: The send() method: ArrayBuffer data</title> + <title>XMLHttpRequest: The send() method: ArrayBuffer data</title> </head> <body> @@ -37,7 +37,7 @@ } }; - xhr.open("POST", "./support/echo.php", true); + xhr.open("POST", "./resources/content.php", true); xhr.send(buf); }); </script> diff --git a/XMLHttpRequest/send-data-blob.htm b/XMLHttpRequest/send-data-blob.htm index e7b738c..58cad70 100644 --- a/XMLHttpRequest/send-data-blob.htm +++ b/XMLHttpRequest/send-data-blob.htm
@@ -30,7 +30,7 @@ blob = xhr.response; assert_true(blob instanceof Blob, "Blob from XHR Response"); - xhr2.open("POST", "./support/echo.php", true); + xhr2.open("POST", "./resources/content.php", true); xhr2.send(blob); }); } @@ -49,7 +49,7 @@ } }; - xhr.open("GET", "./support/echo.php?content=" + content, true); + xhr.open("GET", "./resources/content.php?content=" + content, true); xhr.responseType = "blob"; xhr.send(); }); diff --git a/XMLHttpRequest/send-no-response-event-loadend.htm b/XMLHttpRequest/send-no-response-event-loadend.htm index 325d6e5..0794c0c 100644 --- a/XMLHttpRequest/send-no-response-event-loadend.htm +++ b/XMLHttpRequest/send-no-response-event-loadend.htm
@@ -37,7 +37,7 @@ }); }; - xhr.open("POST", "./support/echo.php", true); + xhr.open("POST", "./resources/content.php", true); xhr.send(); }); </script> diff --git a/XMLHttpRequest/send-no-response-event-loadstart.htm b/XMLHttpRequest/send-no-response-event-loadstart.htm index 73f6bb1..9b5a1ed 100644 --- a/XMLHttpRequest/send-no-response-event-loadstart.htm +++ b/XMLHttpRequest/send-no-response-event-loadstart.htm
@@ -36,7 +36,7 @@ test.step(function() { test.done("Test done!"); }); }; - xhr.open("POST", "./support/echo.php", true); + xhr.open("POST", "./resources/content.php", true); xhr.send(); }); </script> diff --git a/XMLHttpRequest/send-no-response-event-order.htm b/XMLHttpRequest/send-no-response-event-order.htm index ce0d0a5..1fa71f4 100644 --- a/XMLHttpRequest/send-no-response-event-order.htm +++ b/XMLHttpRequest/send-no-response-event-order.htm
@@ -50,7 +50,7 @@ }); }; - xhr.open("POST", "./support/echo.php", true); + xhr.open("POST", "./resources/content.php", true); xhr.send(); }); </script> diff --git a/XMLHttpRequest/send-response-event-load.htm b/XMLHttpRequest/send-response-event-load.htm index e9cc885..aae5336 100644 --- a/XMLHttpRequest/send-response-event-load.htm +++ b/XMLHttpRequest/send-response-event-load.htm
@@ -26,7 +26,7 @@ }); }; - xhr.open("POST", "./support/echo.php", true); + xhr.open("POST", "./resources/content.php", true); xhr.send("Test Message"); }); </script> diff --git a/XMLHttpRequest/send-response-event-loadend.htm b/XMLHttpRequest/send-response-event-loadend.htm index cb32424..c1738d5 100644 --- a/XMLHttpRequest/send-response-event-loadend.htm +++ b/XMLHttpRequest/send-response-event-loadend.htm
@@ -26,7 +26,7 @@ }); }; - xhr.open("POST", "./support/echo.php", true); + xhr.open("POST", "./resources/content.php", true); xhr.send("Test Message"); }); </script> diff --git a/XMLHttpRequest/send-response-event-loadstart.htm b/XMLHttpRequest/send-response-event-loadstart.htm index bcc7be9..f5efa62 100644 --- a/XMLHttpRequest/send-response-event-loadstart.htm +++ b/XMLHttpRequest/send-response-event-loadstart.htm
@@ -26,7 +26,7 @@ }); }; - xhr.open("POST", "./support/echo.php", true); + xhr.open("POST", "./resources/content.php", true); xhr.send("Test Message"); }); </script> diff --git a/XMLHttpRequest/send-response-event-order.htm b/XMLHttpRequest/send-response-event-order.htm index c5e77cc..5e8f578 100644 --- a/XMLHttpRequest/send-response-event-order.htm +++ b/XMLHttpRequest/send-response-event-order.htm
@@ -48,7 +48,7 @@ }); }; - xhr.open("POST", "./support/echo.php", true); + xhr.open("POST", "./resources/content.php", true); xhr.send("Test Message"); }); </script> diff --git a/XMLHttpRequest/send-response-event-progress.htm b/XMLHttpRequest/send-response-event-progress.htm index e16edaa..92e77e0 100644 --- a/XMLHttpRequest/send-response-event-progress.htm +++ b/XMLHttpRequest/send-response-event-progress.htm
@@ -26,7 +26,7 @@ }); }; - xhr.open("POST", "./support/echo.php", true); + xhr.open("POST", "./resources/content.php", true); xhr.send("Test Message"); }); </script> diff --git a/XMLHttpRequest/send-response-upload-event-loadend.htm b/XMLHttpRequest/send-response-upload-event-loadend.htm index 80e19a7..18bb0a1 100644 --- a/XMLHttpRequest/send-response-upload-event-loadend.htm +++ b/XMLHttpRequest/send-response-upload-event-loadend.htm
@@ -27,7 +27,7 @@ }); }; - xhr.open("POST", "./support/echo.php", true); + xhr.open("POST", "./resources/content.php", true); xhr.send("Test Message"); }); </script> diff --git a/XMLHttpRequest/send-response-upload-event-loadstart.htm b/XMLHttpRequest/send-response-upload-event-loadstart.htm index 583d29c..a3e228c 100644 --- a/XMLHttpRequest/send-response-upload-event-loadstart.htm +++ b/XMLHttpRequest/send-response-upload-event-loadstart.htm
@@ -27,7 +27,7 @@ }); }; - xhr.open("POST", "./support/echo.php", true); + xhr.open("POST", "./resources/content.php", true); xhr.send("Test Message"); }); </script> diff --git a/XMLHttpRequest/send-response-upload-event-progress.htm b/XMLHttpRequest/send-response-upload-event-progress.htm index 4543a4c..9bb5313 100644 --- a/XMLHttpRequest/send-response-upload-event-progress.htm +++ b/XMLHttpRequest/send-response-upload-event-progress.htm
@@ -27,7 +27,7 @@ }); }; - xhr.open("POST", "./support/echo.php", true); + xhr.open("POST", "./resources/content.php", true); xhr.send("Test Message"); }); </script> diff --git a/XMLHttpRequest/send-sync-no-response-event-load.htm b/XMLHttpRequest/send-sync-no-response-event-load.htm index 71bd86c..6ef2efd 100644 --- a/XMLHttpRequest/send-sync-no-response-event-load.htm +++ b/XMLHttpRequest/send-sync-no-response-event-load.htm
@@ -22,7 +22,7 @@ pass = true; }; - xhr.open("POST", "./support/echo.php", false); + xhr.open("POST", "./resources/content.php", false); xhr.send(); assert_equals(xhr.response, ""); diff --git a/XMLHttpRequest/send-sync-no-response-event-loadend.htm b/XMLHttpRequest/send-sync-no-response-event-loadend.htm index 7e468ad..b78d064 100644 --- a/XMLHttpRequest/send-sync-no-response-event-loadend.htm +++ b/XMLHttpRequest/send-sync-no-response-event-loadend.htm
@@ -22,7 +22,7 @@ pass = true; }; - xhr.open("POST", "./support/echo.php", false); + xhr.open("POST", "./resources/content.php", false); xhr.send(); assert_equals(xhr.response, ""); diff --git a/XMLHttpRequest/send-sync-no-response-event-order.htm b/XMLHttpRequest/send-sync-no-response-event-order.htm index 906daee..afce58b 100644 --- a/XMLHttpRequest/send-sync-no-response-event-order.htm +++ b/XMLHttpRequest/send-sync-no-response-event-order.htm
@@ -31,7 +31,7 @@ xhr.upload.onloadstart = function(e){ actual.push("upload." + e.type); }; xhr.upload.onloadend = function(e){ actual.push("upload." + e.type);}; - xhr.open("POST", "./support/echo.php", false); + xhr.open("POST", "./resources/content.php", false); xhr.send(); assert_equals(xhr.response, ""); diff --git a/XMLHttpRequest/send-sync-response-event-order.htm b/XMLHttpRequest/send-sync-response-event-order.htm index 78affbd..a83ddf3 100644 --- a/XMLHttpRequest/send-sync-response-event-order.htm +++ b/XMLHttpRequest/send-sync-response-event-order.htm
@@ -31,7 +31,7 @@ xhr.upload.onloadstart = function(e){ actual.push("upload." + e.type); }; xhr.upload.onloadend = function(e){ actual.push("upload." + e.type);}; - xhr.open("POST", "./support/echo.php", false); + xhr.open("POST", "./resources/content.php", false); xhr.send("Test Message"); assert_equals(xhr.response, "Test Message"); diff --git a/XMLHttpRequest/send-timeout-events.htm b/XMLHttpRequest/send-timeout-events.htm index 343439f..ed3e682 100644 --- a/XMLHttpRequest/send-timeout-events.htm +++ b/XMLHttpRequest/send-timeout-events.htm
@@ -52,7 +52,7 @@ content += "[" + i + "]"; } - xhr.open("POST", "./support/echo.php", true); + xhr.open("POST", "./resources/content.php", true); xhr.timeout = 1; xhr.send(content); }); diff --git a/XMLHttpRequest/support/echo.php b/XMLHttpRequest/support/echo.php deleted file mode 100644 index 2c506aa..0000000 --- a/XMLHttpRequest/support/echo.php +++ /dev/null
@@ -1,10 +0,0 @@ -<?php - if (isset($_GET["content"])) - { - echo $_GET["content"]; - } - else - { - echo file_get_contents("php://input"); - } -?>